//
//  main.m
//  16通知
//
//  Created by apple on 15/8/5.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "Person.h"
#import "Compay.h"
int main(int argc, const char * argv[]) {

    Person *p = [[Person alloc] init];
    p.name = @"丹凤";
    
    
    Compay *c = [[Compay alloc] init];
    c.name =@"广帆";
    
    
    NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
    
    [center addObserver:p selector:@selector(text:) name:@"gogo" object:c];
    
    [center postNotificationName:@"gogo" object:c userInfo:@{@"title":@"124",@"name":@"liming"}];
    
    
    
    
}
